<?php

namespace backend\modules\home\models;

use Yii;

/**
 * This is the model class for table "mh_booklist_img".
 *
 * @property int $id
 * @property int $number_code
 * @property string $path
 * @property int $title
 * @property int $type
 * @property int $sort
 * @property int $create_at
 */
class BooklistImg extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mh_booklist_img';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['number_code'], 'required'],
            [['number_code', 'sort', 'create_at', 'type', 'title'], 'integer'],
            [['path'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'number_code' => 'Number Code',
            'title' => 'Title',
            'path' => 'Path',
            'type' => 'Type',
            'sort' => 'Sort',
            'create_at' => 'Create At',
        ];
    }
}
